
with open("res.t", "r") as f:
    out = open("res_cons.txt", "w")
    for l in f:
        if l != None:
            first, second = l.split()
            out.write("{0} {0}\n".format(first,first))
